package com.jzl.po.blog;


import com.appcore.model.AbstractObject;

/**
 * 【】持久化对象 数据库表：blog
 * 
 * @author AutoCode 1129290218@qq.com
 * @date 2016-12
 * 
 */
public class Blog extends AbstractObject {

    public static final long serialVersionUID = 1L;

    // 
    private Integer id;
    // 
    private String title;
    // 
    private String content;

    /** 获取  */
    public Integer getId() {
        return id;
    }

    /** 设置  */
    public void setId(Integer id) {
        this.id = id;
    }

    /** 获取  */
    public String getTitle() {
        return title;
    }

    /** 设置  */
    public void setTitle(String title) {
        this.title = title;
    }

    /** 获取  */
    public String getContent() {
        return content;
    }

    /** 设置  */
    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("Blog");
        sb.append("{id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append('}');
        return sb.toString();
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof Blog) {
            Blog blog = (Blog) obj;
            if (this.getId().equals(blog.getId())) {
                return true;
            }
        }
        return false;
    }

    public int hashCode() {
        String pkStr = "" + this.getId();
        return pkStr.hashCode();
    }

}